namespace Drill.Core
{
	/// <summary>
	/// Represents a search path.
	/// </summary>
	public class SearchPath : ISearchPath
	{
		/// <summary>
		/// Initializes a new instance of the <see cref="SearchPath" /> class.
		/// </summary>
		public SearchPath()
		{
		}

		/// <summary>
		/// Initializes a new instance of the <see cref="SearchPath" /> class.
		/// </summary>
		/// <param name="value">An absolute directory path or a relative path part.</param>
		public SearchPath(string value)
		{
			Value = value;
		}

		/// <summary>
		/// Gets the search path value.
		/// </summary>
		/// <value>
		/// The search path value which is either an absolute directory path or a relative path part.
		/// </value>
		public string Value { get; set; }

		/// <summary>
		/// Returns an absolute directory path or a relative path part.
		/// </summary>
		/// <returns>
		/// An absolute directory path or a relative path part.
		/// </returns>
		public override string ToString()
		{
			return Value;
		}
	}
}